package yuxi3;

//添加和反转方法

public class StringBuilderDem02 {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder();
        //添加
        sb.append("hello");
        sb.append("world");
        //链式编程
        //sb.append("hello").append("world");
        System.out.println("sb:"+sb);

        //反转
        sb.reverse();
        System.out.println("sb:"+sb);
    }
}
